<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='相册'}}
{{assign var="app" value='photo'}}
{{assign var="act" value=''}}
{{assign var="table" value='photo'}}
{{assign var="photo_id" value='154'}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
{{include file="{{$smarty.const.PLUG}}115box/115box.html"}}

</head>
<body>

	{{include file="include/sidebar.html"}}
	
	<div class="body_right">
	<div id="content">
	
	<div class="search">
	<form action="index.php?app={{$app}}&act={{$act}}" name="search" class="router" method="get">
		<input type="hidden" name="app" value="{{$app}}"/>
		<input type="hidden" name="act" value="{{$act}}"/>
		<input type="hidden" name="item" value="{{$smarty.get.item}}"/>
		<input type="hidden" name="level" value="{{$smarty.get.level}}"/>
		  <ul class="bread">
			<li>标题:</li>
			<li><input type="text" name="title" maxlength="50" style="width: 120px;" value="{{$smarty.get.title}}">　</li>
			<li>
				<button type="submit" class="search btn btn-success"><i class="icon-search"></i>搜索</button>
				<a href="index.php?app={{$app}}&act={{$act}}" class="a">清除</a>
			</li>
		  <ul>
	</form>
	</div>
	
	<dl class="dbox drags saveorder" date="{{'table=category&field=ordering'|encode}}">
        <dt class="lside">
            <div class="floatr">
                <a class="btn iframe fontwn" width="80%" height="67%" title="{{$title}}分类管理" href="index.php?app=category&act=index&cat_id={{$photo_id}}&menuid={{$smarty.get.menuid}}&url={{$smarty.const.URL|encode}}&iframe=true"><i class="icon-picture"></i>{{$title}}分类管理</a>
            </div>
			◆ {{$title}}列表 <span style="color:#555;font-size:11px;">({{$title}}个数 : {{$result|@count}}　图片总数 : {{$all_num}})</span>
        </dt>
        <dd>
            <div id="quickmenu">
				{{if !$result}}{{*是否有显示结果 S*}}
				<tr><td colspan="13">没有可显示的结果...</td></tr>
				{{else}}
				<form method="post" name="form" action="index.php">
				<input type="hidden" name="app" value="images"/>
				<input type="hidden" name="act" value=""/>
				<div class="listthumb big_listthumb">
				<ul>
				{{foreach from=$result item=val}}					
					<li class="drag">
						<!-- <div class="checkbox checked"> -->
							<input class="check_id" type="checkbox" style="display:none;" value="{{$val.id}}" name="order[]">
						<!-- </div> -->
						<div class="drag_ico">
							<input type="text" style="display:none;" value="{{$val.id}}" name="ids[]">
						</div>
						<div class="file-thumb photo-box">
							<div class="boxout">
								<div class="boxin">
									<a href="index.php?app=photo&act=list&item={{$val.item}}&url={{$smarty.const.URL|encode}}" style="font-size:12px;font-weight:normal;" title="{{$val.title}}">
										<img src="{{$val.image|photo:124:124}}"/>
									</a>
								</div>
							</div>
						</div>
						<div class="file-name"> 
							<a href="index.php?app=photo&act=list&item={{$val.item}}&url={{$smarty.const.URL|encode}}" title="{{$val.title}}">{{$val.title}}</a>
						</div>
						<div class="file-info">(共{{$val.count|default:0}}个图片)</div>
						<div class="file-opt">
							<a class="i-rename iframe" href="index.php?app=category&act=modify&{{if $smarty.get.item!=''}}item={{$smarty.get.item}}{{else}}cat_id={{$photo_id}}{{/if}}&id={{$val.id}}&menuid={{$smarty.get.menuid}}&iframe=true" title="编辑相册信息"><i class="icon-edit"></i></a>
							<a class="i-delete confirm ajaxSubmit refresh" link="index.php?app=photo&act=delete_category&item={{$val.item}}" lang="删除将不可恢复,确定要删除吗?"><i class="icon-trash"></i></a>
						</div>
					</li>
				{{/foreach}}
				</ul>
				</div>
				</form>
				{{/if}}{{*是否有显示结果 E*}}
				<div class="clear"></div>
            </div>
        </dd>
		</dl>
	</div>
</div>

</body>
</html>